package com.barunsw.bwf.neoarena_erp.repair_create;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.barunsw.bwf.neoarena_erp.vo.RepairCreate;

/**
 * Handles requests for the application home page.
 */
@Controller
@RequestMapping("/repair_type")
public class RepairCreateController {
	
	private static final Logger logger = LoggerFactory.getLogger(RepairCreateController.class);
	
	@RequestMapping(value = "/list", method = RequestMethod.GET)
	public @ResponseBody List<RepairCreate> list() throws Exception {
		
		List<RepairCreate> repairCreateList = new ArrayList<RepairCreate>();
		
		RepairCreate oneRepairCreate = new RepairCreate();
		oneRepairCreate.setRepairTypeCode("11");
		oneRepairCreate.setRepairTypeName("어디수리");
		
		repairCreateList.add(oneRepairCreate);
		
		return repairCreateList;
	}
}
